<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title> 
    <script>
        var a = 0;
        var b = 0;
        for (let index = 1; index <= 100; index++) {
            if (index % 7 == 0) {
                a = a + index ;
                b++;
            }
        }
        alert(b);
        alert(a);
    </script>
</head>
<body>
    
</body>
</html>